import java.util.ArrayList;
import java.io.File;


class SpimiInvert{
	
	private static SpimiDictionary dictionary;
	private File outputFile;
	
	public SpimiInvert(){
		dictionary=new SpimiDictionary();
	}
	public SpimiDictionary getDictionary(){
		return this.dictionary;
	}
	
	public static void spimiInvert(ArrayList<String> stream, String docId){
		//while(Runtime.getRuntime().freeMemory()>2000000){
			for(String token: stream){
				dictionary.addTerm(token, docId);
			}
		//}
	}

}